<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <title>AI告警信息中心</title>
    <link rel="stylesheet" href="./style/weui.css"/>
    <link rel="stylesheet" href="./style/example.css"/>
    <link rel="stylesheet" href="./style/jquery-weui.min.css">
    <link rel="stylesheet" href="./style/my.css">
    <link rel="stylesheet" type="text/css" href="./static/mobile/css/wx/style.css" />
    <link rel="stylesheet" type="text/css" href="./static/assets/layui/css/layui.css" />
    <style>
        /*.weui-cells{
            background: #fff !important;
        }*/
        /*.bd_left{
            border-left:1px solid rgba(0, 0, 0, 0.9);
        }*/
        .padding-left{
            padding-left:15px;
        }
        /*.padding-left2{
            margin-left:-15px;
        }*/
        .diyige {
            width:18%;
        }
        /*.weui-cell div{border:1px solid rgba(0, 0, 0, 0.9)}*/
        .list_big{
            width:100%;
            overflow: hidden;
        }
        .list_1_first{
            background: #f8f8f8;
            font-weight: 700;
            font-size: 14px;
        }
        .list_1{
            margin:0 auto;
            border-top: 1px solid #eee;
            overflow: hidden;
        }
        .list_1_1{
            width:18%;
            height:40px;
            float: left;
            text-align: center;
            
            line-height: 40px;
            font-size: 14px;

        }
        .list_1_xuhao{
            width:10%;
        }
        .list_1_left{
            /*border-left: 1px solid #eee;*/
            width:34%;
        }
    </style>
</head>
<body >
<div class="page js_show home" >
        <!-- <a href="javascript:" class="weui-grid">
            <div class="weui-grid__icon">
                <img src="./images/icon_nav_form.png" alt="">
            </div>
        </a> -->
   <!--  <a href="list.html">
        <div class="list_button" style="text-align: left;">
            <img src="./images/icon-back.png" alt="">
        </div>
    </a> -->
     <div style="font-size:30px;text-align: center;margin-top:20px;margin-bottom: 20px;font-weight: 700;letter-spacing: 2px;color:#7D89F4">
         AI告警信息中心
     </div>
     
    <div class="weui-form__control-area" >

        <div class="weui-form__control-area">
        <div class="weui-cells__group weui-cells__group_form">
          <div class="weui-cells">
             <div  class="list_big">
                 <div class="list_1 list_1_first" style="">
                    <div class="list_1_1 list_1_xuhao">序号</div>
                    <div class="list_1_1 list_1_left">报警时间</div>
                    <div class="list_1_1 list_1_left">联系方式</div>
                    <div class="list_1_1 ">匹配结果</div>
                </div>
             </div> 
             <div class="list_big list_big2">
                
                <!-- <div class="list_1">
                    <div class="list_1_1 list_1_xuhao">1</div>
                    <div class="list_1_1 list_1_left">2025-1-9</div>
                    <div class="list_1_1 list_1_left">13388998898</div>
                    <div class="list_1_1 ">是</div>
                </div>
                <div class="list_1">
                    <div class="list_1_1 list_1_xuhao">2</div>
                    <div class="list_1_1 list_1_left">2025-1-9</div>
                    <div class="list_1_1 list_1_left">13388998898</div>
                    <div class="list_1_1 ">是</div>
                </div>
                <div class="list_1">
                    <div class="list_1_1 list_1_xuhao">3</div>
                    <div class="list_1_1 list_1_left">2025-1-9</div>
                    <div class="list_1_1 list_1_left">13388998898</div>
                    <div class="list_1_1 " style="color:red">否</div>
                </div> -->
             </div>
              <!--<div class="weui-cell weui-cell_active" style="background: #f8f8f8;">
                  <div class="weui-cell__bd diyige">序号</div>
                  <div class="weui-cell__bd bd_left" >
                     报警时间
                  </div>
                  <div class="weui-cell__bd bd_left">
                    联系方式
                  </div>
                  <div class="weui-cell__hd">
                    <span  class="padding-left">匹配结果</span>
                  </div>
              </div>

              <div class="weui-cell weui-cell_active">
                  <div class="weui-cell__bd diyige">1</div>
                  <div class="weui-cell__bd bd_left">
                     2025-1-9
                  </div>
                  <div class="weui-cell__bd bd_left" style="">
                    <span class="padding-left2">13388999<span>
                  </div>
                  <div class="weui-cell__hd">
                    <span class="padding-left">是<span >
                  </div>
              </div>
              <div class="weui-cell weui-cell_active">
                  <div class="weui-cell__bd diyige">2</div>
                  <div class="weui-cell__bd bd_left">
                     2025-1-8
                  </div>
                  <div class="weui-cell__bd bd_left" style="">
                    <span class="padding-left2">13388998898<span>
                  </div>
                  <div class="weui-cell__hd">
                    <span class="padding-left"  style="color:red;">否<span>
                  </div>
              </div>
              <div class="weui-cell weui-cell_active">
                  <div class="weui-cell__bd diyige">3</div>
                  <div class="weui-cell__bd bd_left">
                     2025-1-7
                  </div>
                  <div class="weui-cell__bd bd_left" style="">
                    <span class="padding-left2">13388998897<span>
                  </div>
                  <div class="weui-cell__hd">
                    <span class="padding-left" style="color:red;">否<span>
                  </div>
              </div>
              <div class="weui-cell weui-cell_active" wah-hotarea="click">
                  <div class="weui-cell__hd">手机号</div>
                  <div class="weui-cell__bd">
                      <input id="js_input1" class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入手机号" value="12345678907">
                  </div>
                  <div class="weui-cell__ft">
                    <button type="button" id="showIOSDialog1" class="weui-btn_reset weui-btn_icon">
                      <i role="img" alt="帮助" class="js_target weui-icon-info-circle"></i>
                    </button>
                  </div>
              </div>
               <div class="weui-cell weui-cell_active" wah-hotarea="click">
                  <div class="weui-cell__hd"><label for="js_input1" class="weui-label">手机号</label></div>
                  <div class="weui-cell__bd">
                      <input id="js_input1" class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入手机号" value="12345678907">
                  </div>
                  <div class="weui-cell__ft">
                    <button type="button" id="showIOSDialog1" class="weui-btn_reset weui-btn_icon">
                      <i role="img" alt="帮助" class="js_target weui-icon-info-circle"></i>
                    </button>
                  </div>
              </div> -->
              
          </div>
          
        </div>
      </div>
    </div>







</div> 
 



    





    <script src="./js/jquery.min.js"></script>
    <script src="./js/jquery-weui.min.js"></script>
    
    <script src="./js/zepto.min.js?a=1"></script>
    <script src="./js/jweixin-1.0.0.js"></script>
    <script src="./js/weui.min.js"></script>
    <script src="./js/app.js"></script>

    <script src="./static/mobile/js/jquery2.min.js"></script>
<script src="./static/mobile/js/layer/layer.js"></script>
<script src="./static/assets/layui/layui.js"></script>
<script src="./static/assets/gougu/gouguInit.js"></script>
<script src='./static/mobile/js/wx/jweixin-1.4.0.js'></script>
<script src='./static/mobile/js/wx/recharge.js?v=2'></script>
<script src="./static/mobile/js/wx/jquery.cookie.js"></script>
    <script>
        getlist();
        function getlist(){
            let index = layer.load(1);
            $.ajax({
                url: "http://60.217.22.201:8501/api/video/batchMessage",
                /*data: {
                    mobile: mobile
                },*/
                type: "post",
                dataType: 'json',
                success: function (res) {
                    layer.close(index);
                    if(res.code==0) {
                        
                        let len = res.data.length;
                        html='';

                        if(len>0){
                            for(var i=0;i<res.data.length;i++){
                                html +='<div class="list_1">'
                    +'<div class="list_1_1 list_1_xuhao">'+res.data[i].id+'</div>'
                    +'<div class="list_1_1 list_1_left">'+res.data[i].eventTime+'</div>'
                    +'<div class="list_1_1 list_1_left">'+res.data[i].contact+'</div>';
                    if(res.data[i].isMatch==0){
                        html+='<div class="list_1_1 ">是</div>'
                +'</div>';
                    }else{
                        html+='<div class="list_1_1 " style="color:red">否</div>'
                +'</div>';
                    }
                    
                                
                                
                            }
                            $(".list_big2").html(html);
                        }else{
                            html='<div style="margin-top:20px;text-align:center;">-无数据-</div>';
                            $(".list_big2").html(html);
                        }
                        //$(".card_number_iccid").html(res.iccid);
                        
                        //location.href = "/index.php?g=Wap&m=Dy&a=index";
                    } else {
                        //$.cookie('cardInfo','');
                        layer.msg(res.msg);
                        //location.href = apiUrl+"/api/device/login"
                        
                    }
                },
                error: function (e) {
                    layer.close(index);
                    layer.msg('登录失败，请重试！');
                }
            });
        }
        /*$.ajax({
            type: 'POST',
            dataType: "json",
            url: do_url+"/api/status/is-login",
            success: function(data) {
                if(data.code==400){
                    location.href="login.html";
                }else{
                    $("#promoter").val(data.name);
                }

            }
        });
        $('#active_time').on('click', function () {
            weui.datePicker({
                start: 1990,
                end: new Date().getFullYear(),
                onChange: function (result) {
                    $('#active_time').val(result[0].value+'-'+result[1].value+'-'+result[2].value);
                },
                onConfirm: function (result) {
                    $('#active_time').val(result[0].value+'-'+result[1].value+'-'+result[2].value);
                },
                title: '日期'
            });
        });
        $('#package_name').on('click', function () {
            weui.picker([{
                label: '一年套餐',
                value: 1
            }, {
                label: '两年套餐',
                value: 2
            }, {
                label: '按量计费',
                value: 3
            }], {
                defaultValue: [1],
                onChange: function (result) {
                    $('#package_name').val(result[0].label);
                    $('#package_type').val(result[0].value);
                },
                onConfirm: function (result) {
                    $('#package_name').val(result[0].label);
                    $('#package_type').val(result[0].value);
                },
                title: '选择套餐'
            });
        });
        $(document).ready(function(){$('body').attr('data-weui-theme', 'light');});
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r != null) return decodeURIComponent(r[2]); // unescape替换为decodeURIComponent
            return null; //返回参数值
        }
        getInfo();
        function getInfo(e){
            var e = getUrlParam('e');  
            if(e){
                $.ajax({
                    type: 'get',
                    dataType: "json",
                    url: do_url+"/api/status/info-detail?id="+e,
                    success: function(data) {
                        if(data.code==200){
                            $("#iccid").val(data.datas[0].iccid);
                            $("#customer").val(data.datas[0].customer);
                            $("#incharge").val(data.datas[0].incharge);
                            $("#tel").val(data.datas[0].tel);
                            $("#address").val(data.datas[0].address);
                            $("#active_time").val(data.datas[0].active_time);
                            $("#package_type").val(data.datas[0].package_type);
                            $("#package_name").val(data.datas[0].type_name);
                            $("#promoter").val(data.datas[0].promoter);
                            $("#id").val(data.datas[0].id);
                        }else{
                            $.toast(data.message, "forbidden");
                        }

                    }
                });
            }else{$.toast('参数有误', "forbidden");}
              

        }*/
    </script>

</body>
</html>
